<!doctype html>
<html>
    <head>
        <title>Test Document</title>
        <script type="text/javascript">
            function OnLoadEvent(arg) {
                alert('Yep, it works, see: ' + arg);
            }

            function OnKeyPress(e) {
                alert('OnKeyPress: ' + e.keyCode);
            }

            function OnTextChange(e) {
                alert('OnTextChange fired: ' + e.target);
            }
        </script>
    </head>
    
    <body onload="OnLoadEvent('yes it does')">
        <form id="testForm">
            <input type="text" id="testText" value="" onkeypress="OnKeyPress" onchange="OnTextChange" />
        </form>
    </body>
</html>